import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.border.LineBorder;


public class Janela extends JFrame implements MouseListener{
	
	
	private PainelFerramenta painel;
	private Visualizacao tela;
	private Controle controle;
	public Janela()
	{
		painel= new PainelFerramenta();
		add(painel);
		painel.addMouseListener(painel);
		painel.addMouseMotionListener(painel);
		painel.setBorder(LineBorder.createBlackLineBorder());
		painel.setBackground(Color.yellow);
		setLayout(null);
		addMouseListener(this);
		controle= new Controle();
		add(controle);
		controle.setBounds(800,100,200,1000);
		tela= Visualizacao.getInstance();
		add(tela);
		addMouseListener(painel);
		setBounds(0,0,1050,800);
		setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		
	}
	
	
	
	public static void main(String[] args) {
		
		new Janela();
		
	}

	@Override
	public void mouseClicked(MouseEvent arg0) {
		// TODO Auto-generated method stub
	
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}

